home *** CD-ROM | disk | FTP | other *** search
- #include <types.h>
- #include <Memory.h>
-
- #define piStateReady 1
- #define piStateNull 2
- #define piStateBackRun 3
- #define piStateRun 4
- #define piStateUpdate 5
- #define piStateDebug 6
- #define piStateMoving 7
- #define piStatePuppet 8
- #define piStateSleeping 9
-
- typedef struct {
- short MFProcessID;
- long MFProcessType;
- short resv;
- } ProcessListRec, *ProcessListPtr;
-
-
- typedef struct {
- short MFProcessState;
- short MFProcessID;
- char MFType[4];
- char MFCreator[4];
- long unknown1;
- THz MFWorldPtr;
- long TaskMode;
- Boolean SuspendResume;
- Boolean BackGround;
- Boolean MFAware;
- Boolean UnknownB;
- short LauncherMFProcID;
- long MFPartitionSize;
- long StackSize;
- long Slices;
- long ApplHeapFreeMem;
- char MFApplName[31];
- int vRefNum;
- } ProcessDataRec,*ProcessDataPtr;
-
-
- pascal OSErr MFGetProcessList(ProcessListPtr PL, int MaxCount)
- = {
- 0x3f3c,
- 0x0001,
- 0xA88f
- };
-
- pascal OSErr MFGetMFVersion(Ptr vp)
- = {
- 0x3f3c,
- 0x0002,
- 0xA88f
- };
-
-
- pascal OSErr MFGetProcessData(short int ProcId, ProcessDataPtr Pd)
- = {
- 0x3f3c,
- 0x0017,
- 0xA88f
- };
-